package com.example.springbatchdemo.config.multi;

import com.example.springbatchdemo.config.file.Weather;
import org.springframework.batch.item.ItemWriter;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @Classname MutiFileItemWriter
 * @Description TODO
 * @Date 2020/9/22 22:52
 * @Created by kevin
 */
@Component
public class MutiFileItemWriter implements ItemWriter<Weather> {
    @Override
    public void write( List<? extends Weather> items ) throws Exception {
        items.stream().forEach(System.out::println);
    }
}
